package com.example.exceldemo.utils.poi.v2.subpackage.enums;

public enum WatermarkType {

    NONE(0, "无水印"), TEXT(1, "文本文字水印"), FILE(2, "本地图片水印"), URL(3, "网络图片水印");

    public final int code;
    public final String name;

    WatermarkType(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static boolean containCode(int code) {
        return NONE.code == code || TEXT.code == code || FILE.code == code || URL.code == code;
    }

}